package com.photo.task;

import com.photo.test.TestBean;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.util.TimerTask;

public class EmailReportTask extends TimerTask {
    Log log= LogFactory.getLog(EmailReportTask.class);
    public EmailReportTask() {
    }

    public void run() {
       log.debug("task begin :"+testBean.greeting);
    }

    private TestBean testBean;

    public void setTestBean(TestBean testBean) {
        this.testBean = testBean;
    }
}
